package com.shop.auth.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "t_permission")
@ApiModel(value = "permission对象", description = "用户权限实体类")
public class PermissionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "权限ID", name = "id", required = true, dataType = "String")
    private String id;

    /**
     * 权限标识符
     */
    @Column(name = "code")
    @ApiModelProperty(value = "权限标识符", name = "code", required = true, dataType = "String")
    private String code;

    /**
     * 权限描述
     */
    @Column(name = "description")
    @ApiModelProperty(value = "权限描述", name = "description", required = false, dataType = "String")
    private String description;

    /**
     * 请求地址
     */
    @Column(name = "url")
    @ApiModelProperty(value = "请求地址", name = "url", required = false, dataType = "String")
    private String url;

}
